package com.excel.entity;

import org.apache.poi.ss.usermodel.CellType;

public class CCell {
    private String value;
    private CellType cellType;


    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public CellType getCellType() {
        return cellType;
    }

    public void setCellType(CellType cellType) {
        this.cellType = cellType;
    }


    public static final class CCellBuilder {
        private String value;
        private CellType cellType;

        private CCellBuilder() {
        }

        public static CCellBuilder aCCell() {
            return new CCellBuilder();
        }

        public CCellBuilder withValue(String value) {
            this.value = value;
            return this;
        }

        public CCellBuilder withCellType(CellType cellType) {
            this.cellType = cellType;
            return this;
        }

        public CCell build() {
            CCell cCell = new CCell();
            cCell.setValue(value);
            cCell.setCellType(cellType);
            return cCell;
        }
    }
}
